home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 7 / Amiga Format AFCD07 (Dec 1996, Issue 91).iso / serious / shareware / programming / aros / include / clib / graphics_protos.h < prev    next >
C/C++ Source or Header  |  1996-09-12  |  7KB  |  207 lines

  1. #ifndef CLIB_GRAPHICS_PROTOS_H
  2. #define CLIB_GRAPHICS_PROTOS_H
  3.  
  4. #ifndef AROS_LIBCALL_H
  5. #   include <aros/libcall.h>
  6. #endif
  7.  
  8. /*
  9.     Prototypes
  10. */
  11. __AROS_LP1(void, CloseFont,
  12.     __AROS_LPA(struct TextFont *, textFont, A1),
  13.     struct GfxBase *, GfxBase, 13, Graphics)
  14. #define CloseFont(textFont) \
  15.     __AROS_LC1(void, CloseFont, \
  16.     __AROS_LCA(struct TextFont *, textFont, A1), \
  17.     struct GfxBase *, GfxBase, 13, Graphics)
  18.  
  19. __AROS_LP3(void, Draw,
  20.     __AROS_LPA(struct RastPort *, rp, A1),
  21.     __AROS_LPA(long             , x, D0),
  22.     __AROS_LPA(long             , y, D1),
  23.     struct GfxBase *, GfxBase, 41, Graphics)
  24. #define Draw(rp, x, y) \
  25.     __AROS_LC3(void, Draw, \
  26.     __AROS_LCA(struct RastPort *, rp, A1), \
  27.     __AROS_LCA(long             , x, D0), \
  28.     __AROS_LCA(long             , y, D1), \
  29.     struct GfxBase *, GfxBase, 41, Graphics)
  30.  
  31. __AROS_LP1(ULONG, GetAPen,
  32.     __AROS_LPA(struct RastPort *, rp, A0),
  33.     struct GfxBase *, GfxBase, 143, Graphics)
  34. #define GetAPen(rp) \
  35.     __AROS_LC1(ULONG, GetAPen, \
  36.     __AROS_LCA(struct RastPort *, rp, A0), \
  37.     struct GfxBase *, GfxBase, 143, Graphics)
  38.  
  39. __AROS_LP1(ULONG, GetBPen,
  40.     __AROS_LPA(struct RastPort *, rp, A0),
  41.     struct GfxBase *, GfxBase, 144, Graphics)
  42. #define GetBPen(rp) \
  43.     __AROS_LC1(ULONG, GetBPen, \
  44.     __AROS_LCA(struct RastPort *, rp, A0), \
  45.     struct GfxBase *, GfxBase, 144, Graphics)
  46.  
  47. __AROS_LP1(ULONG, GetDrMd,
  48.     __AROS_LPA(struct RastPort *, rp, A0),
  49.     struct GfxBase *, GfxBase, 145, Graphics)
  50. #define GetDrMd(rp) \
  51.     __AROS_LC1(ULONG, GetDrMd, \
  52.     __AROS_LCA(struct RastPort *, rp, A0), \
  53.     struct GfxBase *, GfxBase, 145, Graphics)
  54.  
  55. __AROS_LP1(void, InitRastPort,
  56.     __AROS_LPA(struct RastPort *, rp, A1),
  57.     struct GfxBase *, GfxBase, 33, Graphics)
  58. #define InitRastPort(rp) \
  59.     __AROS_LC1(void, InitRastPort, \
  60.     __AROS_LCA(struct RastPort *, rp, A1), \
  61.     struct GfxBase *, GfxBase, 33, Graphics)
  62.  
  63. __AROS_LP3(void, Move,
  64.     __AROS_LPA(struct RastPort *, rp, A1),
  65.     __AROS_LPA(long             , x, D0),
  66.     __AROS_LPA(long             , y, D1),
  67.     struct GfxBase *, GfxBase, 40, Graphics)
  68. #define Move(rp, x, y) \
  69.     __AROS_LC3(void, Move, \
  70.     __AROS_LCA(struct RastPort *, rp, A1), \
  71.     __AROS_LCA(long             , x, D0), \
  72.     __AROS_LCA(long             , y, D1), \
  73.     struct GfxBase *, GfxBase, 40, Graphics)
  74.  
  75. __AROS_LP1(struct TextFont *, OpenFont,
  76.     __AROS_LPA(struct TextAttr *, textAttr, A0),
  77.     struct GfxBase *, GfxBase, 12, Graphics)
  78. #define OpenFont(textAttr) \
  79.     __AROS_LC1(struct TextFont *, OpenFont, \
  80.     __AROS_LCA(struct TextAttr *, textAttr, A0), \
  81.     struct GfxBase *, GfxBase, 12, Graphics)
  82.  
  83. __AROS_LP5(void, RectFill,
  84.     __AROS_LPA(struct RastPort *, rp, A1),
  85.     __AROS_LPA(long             , xMin, D0),
  86.     __AROS_LPA(long             , yMin, D1),
  87.     __AROS_LPA(long             , xMax, D2),
  88.     __AROS_LPA(long             , yMax, D3),
  89.     struct GfxBase *, GfxBase, 51, Graphics)
  90. #define RectFill(rp, xMin, yMin, xMax, yMax) \
  91.     __AROS_LC5(void, RectFill, \
  92.     __AROS_LCA(struct RastPort *, rp, A1), \
  93.     __AROS_LCA(long             , xMin, D0), \
  94.     __AROS_LCA(long             , yMin, D1), \
  95.     __AROS_LCA(long             , xMax, D2), \
  96.     __AROS_LCA(long             , yMax, D3), \
  97.     struct GfxBase *, GfxBase, 51, Graphics)
  98.  
  99. __AROS_LP7(void, ScrollRaster,
  100.     __AROS_LPA(struct RastPort *, rp, A1),
  101.     __AROS_LPA(long             , dx, D0),
  102.     __AROS_LPA(long             , dy, D1),
  103.     __AROS_LPA(long             , xMin, D2),
  104.     __AROS_LPA(long             , yMin, D3),
  105.     __AROS_LPA(long             , xMax, D4),
  106.     __AROS_LPA(long             , yMax, D5),
  107.     struct GfxBase *, GfxBase, 66, Graphics)
  108. #define ScrollRaster(rp, dx, dy, xMin, yMin, xMax, yMax) \
  109.     __AROS_LC7(void, ScrollRaster, \
  110.     __AROS_LCA(struct RastPort *, rp, A1), \
  111.     __AROS_LCA(long             , dx, D0), \
  112.     __AROS_LCA(long             , dy, D1), \
  113.     __AROS_LCA(long             , xMin, D2), \
  114.     __AROS_LCA(long             , yMin, D3), \
  115.     __AROS_LCA(long             , xMax, D4), \
  116.     __AROS_LCA(long             , yMax, D5), \
  117.     struct GfxBase *, GfxBase, 66, Graphics)
  118.  
  119. __AROS_LP2(void, SetAPen,
  120.     __AROS_LPA(struct RastPort *, rp, A1),
  121.     __AROS_LPA(unsigned long    , pen, D0),
  122.     struct GfxBase *, GfxBase, 57, Graphics)
  123. #define SetAPen(rp, pen) \
  124.     __AROS_LC2(void, SetAPen, \
  125.     __AROS_LCA(struct RastPort *, rp, A1), \
  126.     __AROS_LCA(unsigned long    , pen, D0), \
  127.     struct GfxBase *, GfxBase, 57, Graphics)
  128.  
  129. __AROS_LP2(void, SetBPen,
  130.     __AROS_LPA(struct RastPort *, rp, A1),
  131.     __AROS_LPA(unsigned long    , pen, D0),
  132.     struct GfxBase *, GfxBase, 58, Graphics)
  133. #define SetBPen(rp, pen) \
  134.     __AROS_LC2(void, SetBPen, \
  135.     __AROS_LCA(struct RastPort *, rp, A1), \
  136.     __AROS_LCA(unsigned long    , pen, D0), \
  137.     struct GfxBase *, GfxBase, 58, Graphics)
  138.  
  139. __AROS_LP2(void, SetDrMd,
  140.     __AROS_LPA(struct RastPort *, rp, A1),
  141.     __AROS_LPA(unsigned long    , drawMode, D0),
  142.     struct GfxBase *, GfxBase, 59, Graphics)
  143. #define SetDrMd(rp, drawMode) \
  144.     __AROS_LC2(void, SetDrMd, \
  145.     __AROS_LCA(struct RastPort *, rp, A1), \
  146.     __AROS_LCA(unsigned long    , drawMode, D0), \
  147.     struct GfxBase *, GfxBase, 59, Graphics)
  148.  
  149. __AROS_LP2(LONG, SetFont,
  150.     __AROS_LPA(struct RastPort *, rp, A1),
  151.     __AROS_LPA(struct TextFont *, textFont, A0),
  152.     struct GfxBase *, GfxBase, 11, Graphics)
  153. #define SetFont(rp, textFont) \
  154.     __AROS_LC2(LONG, SetFont, \
  155.     __AROS_LCA(struct RastPort *, rp, A1), \
  156.     __AROS_LCA(struct TextFont *, textFont, A0), \
  157.     struct GfxBase *, GfxBase, 11, Graphics)
  158.  
  159. __AROS_LP2(void, SetRast,
  160.     __AROS_LPA(struct RastPort *, rp, A1),
  161.     __AROS_LPA(unsigned long    , pen, D0),
  162.     struct GfxBase *, GfxBase, 39, Graphics)
  163. #define SetRast(rp, pen) \
  164.     __AROS_LC2(void, SetRast, \
  165.     __AROS_LCA(struct RastPort *, rp, A1), \
  166.     __AROS_LCA(unsigned long    , pen, D0), \
  167.     struct GfxBase *, GfxBase, 39, Graphics)
  168.  
  169. __AROS_LP3(LONG, Text,
  170.     __AROS_LPA(struct RastPort *, rp, A1),
  171.     __AROS_LPA(STRPTR           , string, A0),
  172.     __AROS_LPA(unsigned long    , count, D0),
  173.     struct GfxBase *, GfxBase, 10, Graphics)
  174. #define Text(rp, string, count) \
  175.     __AROS_LC3(LONG, Text, \
  176.     __AROS_LCA(struct RastPort *, rp, A1), \
  177.     __AROS_LCA(STRPTR           , string, A0), \
  178.     __AROS_LCA(unsigned long    , count, D0), \
  179.     struct GfxBase *, GfxBase, 10, Graphics)
  180.  
  181. __AROS_LP3(WORD, TextLength,
  182.     __AROS_LPA(struct RastPort *, rp, A1),
  183.     __AROS_LPA(STRPTR           , string, A0),
  184.     __AROS_LPA(unsigned long    , count, D0),
  185.     struct GfxBase *, GfxBase, 9, Graphics)
  186. #define TextLength(rp, string, count) \
  187.     __AROS_LC3(WORD, TextLength, \
  188.     __AROS_LCA(struct RastPort *, rp, A1), \
  189.     __AROS_LCA(STRPTR           , string, A0), \
  190.     __AROS_LCA(unsigned long    , count, D0), \
  191.     struct GfxBase *, GfxBase, 9, Graphics)
  192.  
  193. __AROS_LP3(LONG, WritePixel,
  194.     __AROS_LPA(struct RastPort *, rp, A1),
  195.     __AROS_LPA(long             , x, D0),
  196.     __AROS_LPA(long             , y, D1),
  197.     struct GfxBase *, GfxBase, 54, Graphics)
  198. #define WritePixel(rp, x, y) \
  199.     __AROS_LC3(LONG, WritePixel, \
  200.     __AROS_LCA(struct RastPort *, rp, A1), \
  201.     __AROS_LCA(long             , x, D0), \
  202.     __AROS_LCA(long             , y, D1), \
  203.     struct GfxBase *, GfxBase, 54, Graphics)
  204.  
  205.  
  206. #endif /* CLIB_GRAPHICS_PROTOS_H */
  207.